package com.tmxk.days01.szk;

import java.util.Scanner;

public class ScenicTest {
    public static void main(String[] args) {
        Scenic s= new Scenic();
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入姓名");
        s.name=sc.next();
        System.out.println("请输入年龄");
        s.age= sc.nextInt();
        if(s.name == "n" ){
            System.out.println("退出程序");
        }
        s.Price();
    }
}
